package Fecse;

public class Max {
    double max;
    public Max(int a,int b){
        if (a>b){
             max =a;
            System.out.println(max);
        }

    }
    public Max(double a,double b){
        if (a>b){
            double max=a;
            System.out.println(max);
        }
    }
    public Max(double a,double b,double c){
        if (a>b){
            max=a;
            System.out.println(max);
        }else if(a>max){
            max=a;
            System.out.println(max);
        }else if(c>max){
            max=c;
            System.out.println(max);
        }
    }
}
